#include <iostream>
#include <vector>

using namespace std;
/**
 * @brief
 * 1 <= n <= 1000
 * 0 <= start <= 1000
 * n == nums.length
 *
 */
class Solution
{
public:
    int xorOperation(int n, int start)
    {
        int result = 0;
        for (int i = 0; i < n; i++)
        {
            cout << start + 2 * i << " ";
            result ^= start + 2 * i;
        }
        return result;
    }
};
int main()
{
    Solution s;
    cout << s.xorOperation(1,7) << endl;
    return 0;
}
